package com.sxpi.course.feign.callback;

import com.sxpi.common.result.R;
import com.sxpi.course.dto.CourseDto;
import com.sxpi.course.feign.api.CourseServiceFeign;
import com.sxpi.course.vo.CoursePriseVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @Author: 董伟豪
 * @Date: 2022/10/7 14:29
 */
@Slf4j
@Component
public class CourseServiceFeignFeignCallback2 implements CourseServiceFeign{

    @Override
    public R findCoursePage(CourseDto courseDto) {
        return R.error("1课程，进入兜底");
    }

    @Override
    public R findCategories() {
        return R.error("2课程，进入兜底");
    }

    @Override
    public R getCourseDetail(Long id) {
        return R.error("3课程，进入兜底");
    }

    @Override
    public R findCoursePageRelation(CourseDto courseDto) {
        return R.error("4课程，进入兜底");
    }

    @Override
    public R getChapterLessonDetail(Long courseId) {
        return R.error("5课程，进入兜底");
    }

    @Override
    public R getChapterLessonDetailMap(Long courseId) {
        return R.error("6课程，进入兜底");
    }

    @Override
    public R findSentinelByZeroTest() {
        return R.error("7课程，进入兜底");
    }

    @Override
    public R insertCoursePrise(CoursePriseVo coursePriseVo) {
        return null;
    }

    @Override
    public R selectByCourseIdAndUserId(Long courseId, Long userId) {
        return null;
    }

    @Override
    public R countByCourseId(Long courseId) {
        return null;
    }

    @Override
    public R cancelCoursePrise(Long courseId, Long userId) {
        return null;
    }

    @Override
    public R getCoursePriseRank() {
        return null;
    }

    @Override
    public R insertCoursePriseLock(CoursePriseVo coursePriseVo) {
        return null;
    }
}
